<template>
    <div class='publicfriendcircle-content' @click="toPublicFriendCircle">
      <div>
        <img src="~@/assets/img/common/camera.svg" >
      <span>发布生活圈</span>
      </div>
      <van-icon name="arrow" />
    </div>
</template>

<script>
import {mapState} from "vuex"

export default {
    name: '',
    methods:{
      toPublicFriendCircle(){
        if(this.userId){
          this.$router.push('/publicdynamiccontent')
        }else {
          this.$router.push('/login')
        }
      }
    },
    computed:{
      ...mapState({
        userId:(state) => state.moduleUser.userId
      })
    }
}
</script>

<style scoped>
.publicfriendcircle-content {
  display: flex;
  height: 50px;
  margin: 0 15px 20px;
  line-height: 50px;
  justify-content: space-between;
  align-items: center;
  line-height: 50px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}
.publicfriendcircle-content img {
  height: 25px;
  width: 25px;
  margin: 0 15px 0 10px;
  vertical-align: middle;
}
.publicfriendcircle-content span {
  font-size: 12px;
}
.van-icon {
  font-size: 12px;
}
</style>